package com.learn.springboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@RestController
public class TestController {

    @GetMapping("/api/test")
    public String test(String s) throws Exception {
        if(s==null){
            throw new Exception("空参数");
        }
        log.info("xxxxxxxxxxxxxx");
        return "test";
    }
}
